home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 1 / CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso / Aminet / text / edit / WarpA68k09.lha / WarpA68K / auto.ged next >
Text File  |  1995-05-23  |  1KB  |  36 lines

  1. /* $VER: AutoConfig macro */
  2.  
  3. OPTIONS RESULTS                             /* enable return codes     */
  4.  
  5. if (LEFT(ADDRESS(), 6) ~= "GOLDED") then    /* not started by GoldEd ? */
  6.     address 'GOLDED.1'
  7.  
  8. 'LOCK CURRENT'                              /* lock GUI, gain access   */
  9. OPTIONS FAILAT 6                            /* ignore warnings         */
  10. SIGNAL ON SYNTAX                            /* ensure clean exit       */
  11.  
  12. /* ------------------------ INSERT YOUR CODE HERE: ------------------- */
  13.  
  14. 'REQUEST BODY="A new syntax parser has been installed.|Do you want to use this parser ?" BUTTON="_USE|no"'
  15.  
  16. if (RESULT = 1) then do
  17.  
  18.     'SYNTAX LOAD CONFIG="GOLDED:presets/warpA68k.syn" USE=TRUE'
  19.  
  20.     'REQUEST HIDE=FALSE BODY="GoldED''s preferences have been changed.|Save new configuration ?" BUTTON="_SAVE|no"'
  21.  
  22.     if (RESULT = 1) then
  23.         'PREFS SAVE'
  24. end
  25.  
  26. /* ---------------------------- END OF YOUR CODE --------------------- */
  27.  
  28. 'UNLOCK' /* VERY important: unlock GUI */
  29. EXIT
  30.  
  31. SYNTAX:
  32.  
  33. SAY "Sorry, error line" SIGL ":" ERRORTEXT(RC) ":-("
  34. 'UNLOCK'
  35. EXIT
  36.